package jpf.nextsearch.ds.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * @author <a href="mailto:jacek.pruszkowski@gmail.com">Jacek Pruszkowski</a>
 */
@Entity
@NamedQuery(name = ConfigurationEntryVO.NQ_GET_ALL, query = "from ConfigurationEntryVO order by key")
@Table(name = "CONFIGURATION")
public class ConfigurationEntryVO {

	public static final String NQ_GET_ALL = "config.list";

	@Id
	@Column(name = "key")
	private String key;
	
	@Column(name = "value")
	private String value;
	
	@Column(name = "description")
	private String desctiption;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setDesctiption(String desctiption) {
		this.desctiption = desctiption;
	}

	public String getDesctiption() {
		return desctiption;
	}

}
